#include <iostream>

using namespace std;

int retRef (int nX) {
	int &nrRef = nX;
	nrRef ++;
	return nrRef;
}
int main () {
	int nY = 10;
	cout << "nY = " << nY << endl;
	nY = retRef (nY);
	cout << "nY = " << nY << endl;
	return 0;
}
